]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overview: Hide the overview on session mode hasOverview changes
authorJonas Dreßler <verdre@v0yd.nl>
Mon, 24 Feb 2020 10:19:28 +0000 (11:19 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 25 Feb 2020 19:10:22 +0000 (20:10 +0100)
If the sessionMode does not allow to show the overview, we should also
hide an already visible overview.

This fixes a bug where, if the lockscreen was shown while the overview
was visible, the Ctrl+Alt+Tab popup would allow navigating inside the
overview because the overview actor is still mapped.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/1043

js/ui/overview.js

index 45d12340bc824ff51d1558b2098e843c76e7d3cd..4b30b6f8788449d62f135d87bcfb789292cc4a07 100644 (file)
@@ -270,7 +270,11 @@ var Overview = class {
     }
 
     _sessionUpdated() {
-        this.isDummy = !Main.sessionMode.hasOverview;
+        const { hasOverview } = Main.sessionMode;
+        if (!hasOverview)
+            this.hide();
+
+        this.isDummy = !hasOverview;
         this._createOverview();
     }